package com.ruoyi.productReturn.domain;

import java.time.LocalDate;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 积分商品退货管理对象 points_return_request
 * 
 * @author amy
 * @date 2025-06-24
 */
@Schema(description = "积分商品退货管理对象")
public class PointsReturnRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 主键ID */
    @Schema(title = "主键ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 逻辑主键-退货记录编码 */
    @Schema(title = "逻辑主键-退货记录编码")
    private String returnCode;

    /** 兑换记录ID */
    @Schema(title = "兑换记录ID")
    @Excel(name = "兑换记录ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long exchangeId;

    /** 申请退货的用户ID */
    @Schema(title = "申请退货的用户ID")
    @Excel(name = "申请退货的用户ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 退货原因 */
    @Schema(title = "退货原因")
    @Excel(name = "退货原因")
    private String returnReason;

    /** 退货快递公司 */
    @Schema(title = "退货快递公司")
    @Excel(name = "退货快递公司")
    private String logisticsCompany;

    /** 退货快递单号 */
    @Schema(title = "退货快递单号")
    @Excel(name = "退货快递单号")
    private String logisticsNo;

    /** 用户寄出时间 */
    @Schema(title = "用户寄出时间")
    @Excel(name = "用户寄出时间")
    private LocalDate logisticsTime;

    /** 退货状态 */
    @Schema(title = "退货状态")
    @Excel(name = "退货状态")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long status;

    /** 审核说明 */
    @Schema(title = "审核说明")
    @Excel(name = "审核说明")
    private String reviewRemark;

    /** 创建人 */
    @Schema(title = "创建人")
    @JsonSerialize(using = ToStringSerializer.class)
    private String createdBy;

    /** 创建时间 */
    @Schema(title = "创建时间")
    private LocalDate createdTime;

    /** 更新人 */
    @Schema(title = "更新人")
    @JsonSerialize(using = ToStringSerializer.class)
    private String updatedBy;

    /** 更新时间 */
    @Schema(title = "更新时间")
    private LocalDate updatedTime;

    /** 逻辑删除标志（0-正常，1-已删除） */
    @Schema(title = "逻辑删除标志（0-正常，1-已删除）")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deletedFlag;
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }


    public void setReturnCode(String returnCode) 
    {
        this.returnCode = returnCode;
    }

    public String getReturnCode() 
    {
        return returnCode;
    }


    public void setExchangeId(Long exchangeId) 
    {
        this.exchangeId = exchangeId;
    }

    public Long getExchangeId() 
    {
        return exchangeId;
    }


    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }


    public void setReturnReason(String returnReason) 
    {
        this.returnReason = returnReason;
    }

    public String getReturnReason() 
    {
        return returnReason;
    }


    public void setLogisticsCompany(String logisticsCompany) 
    {
        this.logisticsCompany = logisticsCompany;
    }

    public String getLogisticsCompany() 
    {
        return logisticsCompany;
    }


    public void setLogisticsNo(String logisticsNo) 
    {
        this.logisticsNo = logisticsNo;
    }

    public String getLogisticsNo() 
    {
        return logisticsNo;
    }


    public void setLogisticsTime(LocalDate logisticsTime) 
    {
        this.logisticsTime = logisticsTime;
    }

    public LocalDate getLogisticsTime() 
    {
        return logisticsTime;
    }


    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }


    public void setReviewRemark(String reviewRemark) 
    {
        this.reviewRemark = reviewRemark;
    }

    public String getReviewRemark() 
    {
        return reviewRemark;
    }


    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }


    public void setCreatedTime(LocalDate createdTime) 
    {
        this.createdTime = createdTime;
    }

    public LocalDate getCreatedTime() 
    {
        return createdTime;
    }


    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }


    public void setUpdatedTime(LocalDate updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public LocalDate getUpdatedTime() 
    {
        return updatedTime;
    }


    public void setDeletedFlag(Long deletedFlag) 
    {
        this.deletedFlag = deletedFlag;
    }

    public Long getDeletedFlag() 
    {
        return deletedFlag;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("returnCode", getReturnCode())
            .append("exchangeId", getExchangeId())
            .append("userId", getUserId())
            .append("returnReason", getReturnReason())
            .append("logisticsCompany", getLogisticsCompany())
            .append("logisticsNo", getLogisticsNo())
            .append("logisticsTime", getLogisticsTime())
            .append("status", getStatus())
            .append("reviewRemark", getReviewRemark())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("deletedFlag", getDeletedFlag())
            .toString();
    }
}
